package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * 物料表
 * @author chenyu
 */
public class Thing implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	
    private String id; //主键ID
    private String name; //物资名称
    private String model; //物资型号
    private String type; //物资分类
    private String trainCode; //所属车次
    private String trainNum; //车组号
    private String depNum; //部门编号
    private String currentNum; //数量 0,1 0表示不再库，1表示在库
    private String canUse; //是否可用 0, 1， 0表示故障，1表示没问题
    private String createUser; //创建人
    private String modifyUser; //
    private String createDate; //创建时间
    private String modifyDate; //修改时间

    private String depName;//部门名称
    private String typeName;//物品分类
    public String getId(){
        return this.id;
    }
    
    public void setId(String id){
        this.id = id;
    }
    public String getName(){
        return this.name;
    }
    
    public void setName(String name){
        this.name = name;
    }
    public String getModel(){
        return this.model;
    }
    
    public void setModel(String model){
        this.model = model;
    }
    public String getType(){
        return this.type;
    }
    
    public void setType(String type){
        this.type = type;
    }
    public String getTrainCode(){
        return this.trainCode;
    }
    
    public void setTrainCode(String trainCode){
        this.trainCode = trainCode;
    }
    public String getTrainNum(){
        return this.trainNum;
    }
    
    public void setTrainNum(String trainNum){
        this.trainNum = trainNum;
    }
    public String getDepNum(){
        return this.depNum;
    }
    
    public void setDepNum(String depNum){
        this.depNum = depNum;
    }
    public String getCurrentNum(){
        return this.currentNum;
    }
    
    public void setCurrentNum(String currentNum){
        this.currentNum = currentNum;
    }
    public String getCanUse(){
        return this.canUse;
    }
    
    public void setCanUse(String canUse){
        this.canUse = canUse;
    }
    public String getCreateUser(){
        return this.createUser;
    }
    
    public void setCreateUser(String createUser){
        this.createUser = createUser;
    }
    public String getModifyUser(){
        return this.modifyUser;
    }
    
    public void setModifyUser(String modifyUser){
        this.modifyUser = modifyUser;
    }
    public String getCreateDate(){
        return this.createDate;
    }
    
    public void setCreateDate(String createDate){
        this.createDate = createDate;
    }
    public String getModifyDate(){
        return this.modifyDate;
    }
    
    public void setModifyDate(String modifyDate){
        this.modifyDate = modifyDate;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Override
	public String toString() {
		
		return new Gson().toJson(this);
	}
	
}